import 'package:flutter_yn_goods/config/app_routes.dart';
import 'package:flutter_yn_goods/utils/shared/shared_export.dart';
import 'package:get/get.dart';

class LauncherLogic extends GetxController {
  int lastPopTime = 0;

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
    initApp();
  }

  @override
  void onClose() {
    // TODO: implement onClose
    super.onClose();
  }

  void initApp() async {
    // var result = await AppUserManager().firstLaunch();

    // String token = SharedStorage().prefs.getString(SharedKey.token) ?? "";
    // String password = SharedStorage().prefs.getString(SharedKey.password) ?? "";

    // if (token.isNotEmpty) {
    Get.offAllNamed(AppRoutes.main);
    // } else {
    //   Get.offAllNamed(AppRoutes.login);
    // }
    // checkUpdate();
  }
}
